{{#extends @html/widgets/widget.html}}

{{:widget_div_name}}tags{{/:widget_div_name}}

{{:widget_title}}{{widget.title | or "Темы"}}{{/:widget_title}}

{{:widget_body}}
	{{?widget.content.items || founded_tags}}
		<ul class="tags-">
			{{?founded_tags}}
				{{!for founded_tags do=@:tag}}
			{{?:}}
				{{!for widget.content.items do=@:tag}}
			{{/?}}
			{{:tag *is_current}}
				<li class="t{{*weight | sprintf '%02d'}}-">{{*name}}<!-- ({{*count}})-->{{?!For.last}}, {{/?}}</li>
			{{/:tag}}
			{{:tag}}
				<li class="t{{*weight | sprintf '%02d'}}-"><a href="{{*url|safe}}">{{*name}}</a><!-- ({{*count}})-->{{?!For.last}},{{/?}} </li>
			{{/:tag}}
		</ul>
	{{?:}}
		<div class="content"><p>Тем пока нет.</p></div>
	{{/?}}
{{/:widget_body}}